:root {
  --doc-sidebar-width: 300px;
  --doc-sidebar-hidden-width: 30px;
}

.docSidebarContainer {
  display: none;
}

@media (min-width: 997px) {
  .docSidebarContainer {
    display: block;
    width: var(--doc-sidebar-width);
    /* margin-top: calc(-1 * var(--ifm-navbar-height)); */
    border-right: 1px solid var(--ifm-toc-border-color);
    will-change: width;
    transition: width var(--ifm-transition-fast) ease;
    clip-path: inset(0);
    z-index: 2;
    background: var(--ifm-navbar-background-color);
  }

  .docSidebarContainerHidden {
    width: var(--doc-sidebar-hidden-width);
    cursor: pointer;
  }

  .docSidebarContainerHidden nav {
    visibility: hidden;
    opacity: 0;
  }

  .docSidebarContainerHidden nav {
    transition: all 0.2s ease;
  }

  .sidebarViewport {
    top: 100px;
    position: sticky;
    height: 100%;
    max-height: 100vh;
  }
}
